//
//  CashRecordTableViewCell.m
//  BusinessApp
//
//  Created by macox on 16/10/31.
//  Copyright © 2016年 macox. All rights reserved.
//

#import "CashRecordTableViewCell.h"

@implementation CashRecordTableViewCell
//@property (weak, nonatomic) IBOutlet UILabel *TimeLabel;
//@property (weak, nonatomic) IBOutlet UILabel *BrankName;
//@property (weak, nonatomic) IBOutlet UILabel *BrankNum;
//@property (weak, nonatomic) IBOutlet UILabel *ResonLabel;
//@property (weak, nonatomic) IBOutlet UILabel *MoneyLabel;
- (void)setModel:(DepostModel *)model{
    _TimeLabel.text = model.ShenQingRQ;
    _BrankName.text = model.BankName;
     _BrankNum.text =[NSString stringWithFormat:@"尾号为%@",[model.BankAccountNumber substringToIndex:4]];
//    _BrankNum.text = model.BankAccountNumber;
//    _ResonLabel.text = model.ShenHeZT;
    if (model.ShenHeZT == 0) {
        _ResonLabel.text = @"正在申请";
        _MoneyLabel.font = [UIFont systemFontOfSize:28];
        _MoneyLabel.text = [NSString stringWithFormat:@"%.2f元",model.JinE.doubleValue];
    } else if (model.ShenHeZT == 1){
        _ResonLabel.text = @"提现成功";
        _MoneyLabel.font = [UIFont systemFontOfSize:28];
        _MoneyLabel.text = [NSString stringWithFormat:@"%.2f元",model.JinE.doubleValue];
        
    }else{
        _ResonLabel.text = @"提现失败";
        _MoneyLabel.font = [UIFont systemFontOfSize:14];
        _MoneyLabel.text = model.ShenHeBuTongGuoYuanYin;
    }
   
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
